package com.wuseguang.springcloud.controller;


import com.wuseguang.springcloud.Filter.RequestParameterWrapper;
import com.wuseguang.springcloud.entity.StudentEvaluationScore;
import com.wuseguang.springcloud.service.StudentEvaluationScoreService;
import com.wuseguang.springcloud.util.CodeUtil;
import com.wuseguang.springcloud.util.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学生评价分数表 前端控制器
 * </p>
 *
 * @author
 * @since 2020-02-02
 */
@RestController
@RequestMapping("/brands")
public class StudentEvaluationScoreController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private StudentEvaluationScoreService StudentEvaluationScoreServiceImpl;

    /**
     * 评价管理查询
     * @param deviceid 设备id
     * @param findType 0本周,1上周,2本月,3自定义。默认0
     * @param startTime 开始时间
     * @param endTime 结束时间
     */
    @RequestMapping("/findClassEvaluationInformation")
    public Result findClassEvaluationInformation(@RequestParam(value = "deviceid") String deviceid,
                                                 @RequestParam(value = "findType", required = false,defaultValue = "0") Integer findType,
                                                 @RequestParam(value = "startTime", required = false) String startTime,
                                                 @RequestParam(value = "endTime", required = false) String endTime){
        logger.info("班牌查询学生评价分数详情");
        return StudentEvaluationScoreServiceImpl.findClassEvaluationInformation(deviceid,findType, startTime,endTime);
    }



}

